<script setup>
import {useBanner} from '@/composables/useBanner.js'
const {bannerList} = useBanner()
</script>
<template>
    <!-- 轮播图 -->
    <div class="home-banner">
        <el-carousel height="500px">
            <el-carousel-item v-for="item in bannerList" :key="item.id">
                <img :src="item.imgUrl" alt="">
            </el-carousel-item>
        </el-carousel>
    </div>
</template>
  
  
<style scoped lang="scss">
// 部分代码省略

</style>